@charset "UTF-8";
/* <----------- Colors ----------> */

:root {

    /*Color mode HSL(hue, saturation, lightness)*/

    --first-color: hsl(89deg 45% 40%);
    --title-color: #fff;
    --text-color: hsl(228, 8%, 50%);
    --body-color: hsl(207deg 30% 12%);
    --container-color: hsl(207deg 30% 12%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/

    --body-font: 'Poppins', sans-serif;
    --normal-font-size: .938rem;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scrollbar-width: none; /* Firefox: 隐藏滚动条 */
}

/* <-------------- Base ------------> */

body {
    position: relative;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}


*:-webkit-scrollbar {
    display: none; /* Chrome/Safari: 隐藏滚动条 */
}


a {
    text-decoration: none;
}

.blocks {
    display: flex;
    align-items: baseline;
}

/* <------------- Middle Block ----------> */

.middle {
    padding-left: 20em;
    padding-right: 3em;
    padding-top: 2rem;
    width: 100%;
}


/* <------------- Search ----------> */

.input {

}

.search {
    padding: 0.5em 0.5em 0.5em 1em;
    background: hsl(207deg 27% 19%);
    border-radius: 7px;
}

.search-term {
outline: none;
    border: none;
    background: none;
    font-family: unset;
    font-weight: 500;
    font-size: 0.8em;
    color: var(--text-color);
}

.search-button {
    font-size: 1.25em;
    color: #fff;
    background: none;
    border: none;
    margin-right: 0.5em;
    margin-top: 0.3em;
}

.search-flex {
    display: flex;
}

/* <------------- Header ----------> */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-count {
    display: flex;
    align-items: center;
}

.profile-count i {
    cursor: pointer;
    transition: .5s;
}

.profile-count i:hover {
    font-size: 1.5em;
    color: var(--first-color);
    transition: .5s;
}

.profile-count i:active {
    font-size: 1.5em;
    color: var(--first-color);
}

.profile-count i:nth-child(1) {
    font-size: 1.5em;
}

.profile-count i:nth-child(2) {
    font-size: 1.5em;
    margin-left: 1em;
}

.profile-photo {
    width: 3em;
    border-radius: 50%;
    margin-left: 2em;
    cursor: pointer;
    transition: .5s;
}

.profile-photo:hover {
    box-shadow: 0px 0px 10px var(--first-color);
    transition: .5s;
}


/* <------------- Page Path ----------> */

.path {
    display: flex;
    align-items: center;
    margin-top: 2em;
}

.path a {
    text-decoration: none;
    list-style: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9em;
}

.path a:nth-child(1) {
    margin-right: 1em;
}

.left {
    margin-left: 1em;
}

.tx {
    margin-top: 0.19em;
}

.comment-container textarea {
    outline: none;
    resize: none;
}

.article-content ul {
    list-style: disc;
    padding-left: 2em;
}

.article-content li {
    list-style: disc;
}


.main {
    width: 100%;
    margin: 60px auto 10px auto;
    overflow: hidden;
}

.left-box {
    margin: 10px auto;
    width: 850px;
    /*float: left;*/
}

.right-box {
    width: 320px;
    float: left;
    margin-left: 10px;
}

#toc-a-on {
    color: #007aff;
}

.toc {
    top: 90px;
    position: fixed;
    width: 220px;
    font-size: 14px;
    right: -12px;
    height: 470px;
    overflow: hidden;
    /* 支持现代浏览器 */
    /*-webkit-transform: translate(-50%, -50%);*/
    /*transform: translate(-50%, -50%);*/
}

.toc ul {
    list-style-type: none;
    max-width: 100%;
    display: block;
    overflow: hidden;
}

.toc li {
    list-style-type: none;
    line-height: 25px;
    width: 100%;
    display: block;
    overflow: hidden;
}

.toc li ul {
    padding-left: 10px;
    max-width: 100%;
}

.toc a {
    color: #777777;
    /*单行文本溢出显示省略号*/
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
    transition: ease-in-out 0.6s;
}

.toc li a:hover {
    color: #007aff;
    text-decoration: underline;
}

/*左容器*/
.article-container {
    width: 830px;
    margin: 20px 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s;
}

.article-container:hover {
    box-shadow: 0 0 10px #767676;
    -moz-box-shadow: 0 0 10px #767676;
}

.sort-box {
    height: 40px;
    width: 100%;
    border-bottom: #eaeaea solid 1px;
    line-height: 40px;
}

.at-sort-s {
    height: 40px;
    width: 60%;
    font-size: 18px;
    /*border-bottom: #eaeaea solid 1px;*/
}


.at-sort-a {
    height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: left;
    /*border-bottom: #3aa4ff solid 2px;*/
    font-weight: bold;
}

.at-sort-comment-a {
    height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: left;
    border-bottom: #007aff solid 2px;
    font-weight: bold;
}

.location {
    line-height: 40px;
    width: 100%;
    /*border-bottom: #eaeaea solid 1px;*/
}

.at-sort-detail {
    line-height: 40px;
    padding: 0 2px;
    display: inline-block;
    text-align: center;
    float: left;
    font-size: 16px;
}

.at-sort-detail a {
    color: #2f332a;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
}

.at-sort-detail a:hover {
    color: #3aa4ff;
}

.article-content {
    margin-top: 15px;
    width: 100%;
    font-size: 15px;
    line-height: 32px;
    border-bottom: #eaeaea solid 1px;
}

/*.article-content img {
    display: block;
    max-width: 680px;
    max-height: 380px;
    margin: 10px auto;
}*/

/*.article-content > p {
    width: 100%;
    text-indent: 2em;
}*/

/*.article-content p {
    font-size: 15px;
    width: 100%;
    !*text-indent: 2em;*!
}*/

/*右容器*/
.column-holder {
    width: 300px;
    margin: 15px 10px 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    transition: ease-in-out background-color 0.3s;
}

.column-holder:hover {
    box-shadow: 0 0 10px #7e8795;
    -moz-box-shadow: 0 0 10px #7e8795;
}


.column-holder ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: content-box;
}

.column_box {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.column_box .column-title {
    width: 91%;
    height: 60px;
    padding-left: 9%;
    line-height: 60px;
    font-size: 16px;
    font-weight: 600;
    background-color: #EBEBEB;
}

.column_box .column-category {
    height: 50px;
    line-height: 50px;
    /*单行文本溢出显示省略号*/
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.column_box .column-category a {
    width: 82%;
    margin: 0 9%;
    color: #666666;
    -webkit-transition: -webkit-transform 1s linear;
    -moz-transition: -moz-transform 1s linear;
    -o-transition: -o-transform 1s linear;
    -ms-transition: -ms-transform 1s linear;
}

.column_box .column-category a:hover {
    color: #007aff;
}

.writer-info {
    width: 100%;
    font-size: 16px;
    text-align: left;
    /*color: #98A6AD;*/
    /*margin: 0;*/
    color: #a6a6a6;
    /*border-bottom: #eaeaea solid 1px;*/
}

.writer-info #writer {
    margin-left: 2px;
}

.writer-info>span {
    height: 30px;
    margin: 5px 8px;
    display: inline-block;
    line-height: 30px;
}

.prev-next {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.prev-next a {
    max-width: 325px;
}











button {
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    outline:0;
}

svg {
    padding: 5px;
}

.arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -45px;
    margin-left: -35px;
    width: 70px;
    height: 90px;
}

.left {
    left: 4%;
}

.right {
    left: 96%;
}

.left:hover polyline,
.left:focus polyline {
    stroke-width: 3;
}

.left:active polyline {
    stroke-width: 6;
    transition: all 100ms ease-in-out;
}

.right:hover polyline,
.right:focus polyline {
    stroke-width: 3;
}

.right:active polyline {
    stroke-width: 6;
    transition: all 100ms ease-in-out;
}

polyline {
    stroke: rgba(121, 117, 117, 0.89);
    transition: all 250ms ease-in-out;
}









.prev-next div {
    width: 100%;
    height: 50px;
    float: left;
}

.p-div {
    text-align: left;
}

.n-div {
    text-align: right;
}

.prev-next span {
    height: 30px;
    margin: 10px 0;
    display: inline-block;
    line-height: 30px;
    font-size: 16px;
}

.prev-next a {
    display: inline-block;
    height: 30px;
    margin: 10px 3px;
    line-height: 30px;
    font-size: 16px;
    transition: all 0.8s;
    -moz-transition: all 0.8s;
}

.prev-next a:hover {
    color: #007aff;
    text-decoration: underline #007aff;
}

.prev-next #prev-a {
    /*float: left;*/
}

.prev-next #next-a {
    /*float: right;*/
}

.comment-container {
    width: 830px;
    margin: 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: ease-in-out all 0.3s;
}

.comment-container:hover {
    box-shadow: 0 0 10px #767676;
    -moz-box-shadow: 0 0 10px #767676;
}

.text-area-holder {
    width: 100%;
    /*height: 130px;*/
    margin-top: 20px;

    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: ease-in-out all 0.3s;
    border: 2px solid #007aff; /* 添加边框 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.1); /* 添加额外的阴影 */
}

.pinglun-input {
    width: 100%;
    height: 100px;
    padding: 10px;
    border:none ;
    outline: none;
    font-size: 18px;
    resize: none;
    --body-font: 'Poppins', sans-serif;
    word-break: break-all;
    word-wrap: break-word
}
#text-area {
    width: 760px;
    height: 100px;
    line-height: 20px;
    padding: 15px;
    font-size: 15px;
    border-radius: 8px;
    background-color: #f1f2f5;
    box-sizing: content-box;
}

.button-line {
    width: 100%;
    height: 60px;
}

.button-line #error-info {
    height: 40px;
    line-height: 40px;
    margin: 5px;
    float: left;
    color: red;
    font-weight: bold;
    font-size: 16px;
}

.button-line #publish-btn {
    float: right;
    width: 100px;
    height: 40px;
    margin-top: 10px;
    background-color: #007aff;
    color: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
}

.total-count {
    width: 785px;
    height: 32px;
    font-size: 15px;
    line-height: 32px;
    padding-left: 5px;
    border-bottom: #eaeaea solid 1px;
}

#comment-count {
    color: #007aff;
}

.comment-item {
    width: 100%;
    /*min-height: 100px;*/
    margin-top: 15px;
    /*padding-bottom: 20px;*/
    border-bottom: #eaeaea 1px solid;
    overflow: hidden;
}

.comment-item .user-img-box {
    width: 60px;
    min-height: 100px;
    float: left;
    text-align: left;
}

.comment-item .user-img-box #user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 5px auto;
}

.comment-item .comment-box {
    width: 730px;
    min-height: 100px;
    float: left;
}

.comment-box .user-info {
    height: 25px;
    width: 710px;
    line-height: 25px;
}

.comment-box p {
    padding: 0;
}

.comment-box img {
    max-width: 35%;
    vertical-align: middle;
    border: 0;
    height: auto;
    -ms-interpolation-mode: bicubic;
    overflow: hidden;
    font-size: 12px;
    padding-bottom: 5px;
}

.user-info span {
    height: 25px;
    float: left;
}

.user-info .user-name {
    font-weight: bold;
}

.user-info .reply-user-name {
    font-weight: bold;
    margin-left: 10px;
    color: #777777;
}

.user-info .publish-time {
    margin-left: 5px;
    color: #a6a6a6;
}

.comment-box .comment-content {
    max-width: 710px;
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 10px;
    line-height: 25px;
    overflow: auto;
}

.comment-content p {
    padding-right: 10px;
}

.comment-box .icon-line {
    height: 30px;
    width: 100%;
    text-align: right;
}

.comment-box .r-icon-line {
    height: 10px;
    width: 100%;
    background-color: #fff;
}

.icon-line a {
    height: 16px;
    width: 16px;
    margin-top: 7px;
    display: inline-block;
    float: right;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.icon-line .liked-icon {
    margin-right: 10px;
}

.icon-line .comment-icon {
    margin-right: 10px;
}

.icon-line .delete-icon {
    margin-right: 10px;
}

.icon-line span {
    height: 16px;
    line-height: 16px;
    float: right;
    margin: 7px 2px;
    font-weight: lighter;
}

.comment-box .reply-holder {
    width: 100%;
    height: 80px;
}

.comment-box .reply-text-area {
    width: 100%;
    height: 100px;
    /*padding: 10px;*/
    line-height: 20px;
    font-size: 15px;
    /*background-color: #f1f2f5;*/
}

.reply-btn {
    margin: 10px 2px;
    float: right;
    width: 80px;
    height: 30px;
    background-color: #3aa4ff;
    color: #fff;
    border-radius: 5px;
}

.reply-box {
    background-color: #f1f2f5;
    width: 100%;
    padding: 10px 0;
    overflow: auto;
}

.article-content .article-cate {
    width: 100%;
    height: 25px;
    line-height: 15px;
    margin: 2px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
}

.article-content .article-cate a {
    font-size: 13px;
    color: #444555;
    padding: 5px 10px;
    height: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    /*font-weight: 900;*/
    display: inline-block;
    transition: all 0.3s ease-in-out;
    box-sizing: content-box;
}

.article-content .article-cate a:hover {
    background-color: #e2e3e3;
    text-decoration: none;
}


/*响应式尺寸*/
@media (max-width: 1200px) {
    .toc {
        display: none;
    }

    .main {
        width: 100%;
        margin: 0 auto 15px auto;
        overflow: hidden;
        padding-top: 60px;
    }

    .left-box {
        width: 96%;
        margin: 0 2%;
        float: left;
    }

    /*.location {*/
    /*    width: 100%;*/
    /*}*/
    .article-container {
        width: 100%;
        margin: 0;
        padding: 5px;
        /*        background-color: #ffffff;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
                -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
                box-sizing: border-box;
                overflow: hidden;
                transition: all 0.3s;*/
    }

    .comment-container {
        width: 100%;
        margin: 0;
        padding: 5px;
    }

    #text-area {
        width: 96%;
        margin: 0 2%;
        padding: 0;
    }

    #publish-btn {
        margin-right: 2%;
    }

    .comment-item .user-img-box {
        width: 8%;
        /*弹性布局*/
        display: flex;
        /*水平居中*/
        justify-content: center;
        /*垂直居中*/
        /*align-items: center;*/
    }

    .comment-item .comment-box {
        width: 92%;
        float: right;
    }

    .comment-box .user-info {
        width: 100%;
    }

    .comment-box .comment-content {
        padding: 0 10px;
        margin-bottom: 0;
        width: 100%;
    }

    .right-box {
        width: 96%;
        margin: 0 2%;
        float: left;
    }

    .column-holder {
        width: 100%;
        margin: 10px 0;
    }

    .total-count {
        width: 100%;
    }

    .writer-info>span {
        height: 30px;
        margin: 5px 2px;
        display: inline-block;
        line-height: 30px;
    }

    .prev-next .p-div {
        text-align: left;
        width: 100%;
        height: 100%;
    }

    .prev-next .n-div {
        text-align: right;
        width: 100%;
        height: 100%;
    }

    .prev-next a {
        max-width: 70%;
        float: left;
    }

    .prev-next span {
        float: left;
    }

}

/* 星星评分样式 */
.star-rating {
    display: inline-block;
    margin-left: 10px;
}

.star-rating i {
    font-size: 1.5em;
    margin: 0 2px;
    color: #ccc; /* 未评分时为灰色 */
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating i.rated {
    color: #ffcc00; /* 已评分时为黄色 */
}


@media (max-width: 768px) {
    .comment-item .user-img-box #user-img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
    }

    .comment-item .user-img-box {
        width: 10%;
        /*弹性布局*/
        display: flex;
        /*水平居中*/
        justify-content: center;
        /*垂直居中*/
        /*align-items: center;*/
    }

    .comment-item .comment-box {
        width: 90%;
        float: right;
    }

}

@media (max-width: 576px) {

    .comment-item .user-img-box #user-img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
    }

    .comment-item .user-img-box {
        width: 15%;
        /*弹性布局*/
        display: flex;
        /*水平居中*/
        justify-content: center;
        /*垂直居中*/
        /*align-items: center;*/
    }

    .comment-item .comment-box {
        width: 85%;
        float: right;
    }
   /* 评论输入框下面的星星评分样式 */
   .comment-rating {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.comment-rating i {
    font-size: 1.5em;
    margin: 0 2px;
    color: #ccc; /* 未评分时为灰色 */
    cursor: pointer;
    transition: color 0.3s;
}

.comment-rating i.rated {
    color: #ffcc00; /* 已评分时为黄色 */
}

}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    padding: 20px;
}

.modal img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

